//
//  ClassifyCollectionViewCell.m
//  A段项目,漫画
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ClassifyCollectionViewCell.h"
#define WIDTH [[UIScreen mainScreen] bounds].size.width
@implementation ClassifyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.myImageView.frame = CGRectMake(0, 0, WIDTH / 3.8, WIDTH / 3.8);
        
        self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, WIDTH / 3.8, WIDTH / 3.8, 30)];
        
        
        self.myLabel.textAlignment = NSTextAlignmentCenter;
        self.myLabel.textColor = [UIColor redColor];
        [self.contentView addSubview:self.myLabel];
        self.myLabel.shadowColor = [UIColor redColor];
        
        [self.myLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:15]];
        // 设置阴影的偏移量
        self.myLabel.shadowOffset = CGSizeMake(0, 3);
        self.myLabel.layer.shadowColor = [UIColor blackColor].CGColor;
        self.myLabel.layer.shadowOffset = CGSizeMake(0, 5);
        self.myLabel .layer.shadowOpacity = 0.5;
        self.myLabel .layer.shadowRadius = 1;
        
        // 底下那一层
        [self.myLabel setShadowColor:[UIColor colorWithRed: 244 / 256.0 green:244 / 256.0 blue: 244 / 256.0 alpha:1.0]];
        
        [_myLabel release];
    }
    
    return self;
}

- (void)dealloc
{
    [_myLabel release];
    [super dealloc];
}


@end
